package com.qf.common.feigns;

import com.qf.common.bean.R;
import com.qf.common.model.QfProduct;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "qf-center-service")
public interface ProductApi {

    @GetMapping("/api/product/list")
    R list(@RequestParam("tenantId") Long tenantId);

    @GetMapping("/api/product/{productKey}")
    QfProduct findByProductKey(@PathVariable("productKey") String productKey);
}
